From: Georges Basile Stavracas Neto Date: Fri, 14 Feb 2020 15:35:48 +0000 (-0300) Subject: unlockDialog: Iconize the switch user button X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~777^2^2~25 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=133b62320482e1165ae56977b242680f80c05dbf;p=gnome-shell.git unlockDialog: Iconize the switch user button Make it look exactly the same as the login screen's session selection button. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1006 --- diff --git a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss index 284a53b06..c672e0414 100644 --- a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss +++ b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss @@ -70,6 +70,7 @@ } .cancel-button, + .switch-user-button, .login-dialog-session-list-button { padding: 0; border-radius: 99px; diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index eac655f32..7a6c93612 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -556,15 +556,13 @@ var UnlockDialog = GObject.registerClass({ this._notificationsBox.connect('wake-up-screen', () => this.emit('wake-up-screen')); // Switch User button - let otherUserLabel = new St.Label({ - text: _('Log in as another user'), - style_class: 'login-dialog-not-listed-label', - }); this._otherUserButton = new St.Button({ - style_class: 'login-dialog-not-listed-button', + style_class: 'modal-dialog-button button switch-user-button', can_focus: true, - child: otherUserLabel, reactive: true, + x_align: Clutter.ActorAlign.END, + y_align: Clutter.ActorAlign.END, + child: new St.Icon({ icon_name: 'system-users-symbolic' }), }); this._otherUserButton.connect('clicked', this._otherUserClicked.bind(this));